package com.mgee.netty.server.configure;
/*
 * package com.sstar.chat.server.configure;
 * 
 * import org.slf4j.Logger; import org.slf4j.LoggerFactory; import
 * org.springframework.beans.factory.annotation.Value; import
 * org.springframework.cache.annotation.CachingConfigurerSupport; import
 * org.springframework.cache.annotation.EnableCaching; import
 * org.springframework.context.annotation.Bean; import
 * org.springframework.context.annotation.Configuration;
 * 
 * import redis.clients.jedis.JedisPool; import
 * redis.clients.jedis.JedisPoolConfig;
 * 
 * 
 *//**
	 * Redis配置类
	 *
	 * @version v1.0
	 *//*
		 * @Configuration
		 * 
		 * @EnableCaching public class RedisCacheConfiguration extends
		 * CachingConfigurerSupport { Logger logger =
		 * LoggerFactory.getLogger(RedisCacheConfiguration.class);
		 * 
		 * @Value("${spring.redis.host}") String redisAddr;
		 * 
		 * @Value("${spring.redis.password}") String redisPwd;
		 * 
		 * @Value("${spring.redis.port}") Integer redisPort;
		 * 
		 * @Value("${spring.redis.database}") Integer redisDBIndex;
		 * 
		 * @Value("${spring.redis.pool.max-active}") Integer maxIdle;
		 * 
		 * @Value("${spring.redis.pool.max-wait}") Integer maxWaitMillis;
		 * 
		 * @Value("${spring.redis.timeout}") Integer timeout;
		 * 
		 * @Bean public JedisPool redisPoolFactory() { JedisPoolConfig jedisPoolConfig =
		 * new JedisPoolConfig(); jedisPoolConfig.setMaxIdle(maxIdle);
		 * jedisPoolConfig.setMaxWaitMillis(maxWaitMillis); JedisPool jedisPool = new
		 * JedisPool(jedisPoolConfig, redisAddr, redisPort, timeout, redisPwd); return
		 * jedisPool; } }
		 */